<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_organize.*" %>
<%@page import="java.util.*" %>
<% 
  	String org_id="";
  	if(request.getParameter("org_id")!=null) org_id = request.getParameter("org_id");
  	Ti_organizeInfo ti_organizeInfo = new Ti_organizeInfo();
  	List list = ti_organizeInfo.getListByPk(org_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String cust_id="",org_name="",up_org_id="",org_class="",org_desc="",in_date="",remark="";
  	if(map.get("cust_id")!=null) cust_id = map.get("cust_id").toString();
  	if(map.get("org_name")!=null) org_name = map.get("org_name").toString();
  	if(map.get("up_org_id")!=null) up_org_id = map.get("up_org_id").toString();
  	if(map.get("org_class")!=null) org_class = map.get("org_class").toString();
  	if(map.get("org_desc")!=null) org_desc = map.get("org_desc").toString();
  	if(map.get("in_date")!=null) in_date = map.get("in_date").toString();
  	if(map.get("remark")!=null) remark = map.get("remark").toString();
  	
		String up_org_name = ti_organizeInfo.getOrgNameById(up_org_id);
		if(up_org_name == null || up_org_name.equals("")){
			up_org_name = "无上级部门";
		}
		
		
	String up_orgId = "";
	if (request.getParameter("up_org_id") != null && !request.getParameter("up_org_id").equals("")) {
		up_orgId = request.getParameter("up_org_id");
	}
	String s_title = "";
	if(request.getParameter("s_title")!=null && !request.getParameter("s_title").equals("")){
		s_title = request.getParameter("s_title");
	}
	String iStart = "0";
	if(request.getParameter("iStart")!=null) iStart = request.getParameter("iStart");
		String para = "/program/admin/organize/index.jsp?s_title="+s_title+"&up_org_id="+up_orgId+"&iStart="+Integer.parseInt(iStart);

  %>
<html>
  <head>
    
    <title>修改组织结构</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="organize.js" charset="UTF-8" ></script>
	<script type="text/javascript" src="/program/admin/js/judgment.js" charset="UTF-8"></script>
</head>

<body>

  
	
	<h1>修改组织结构</h1>
	<!--table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="9%" align="center"><img src="/program/admin/index/images/ban_01.gif" /></td>
          <td width="91%" align="left">
		  <h4>您可以按“行业”或“关键字”订阅</h4>
		  <span>1、填写关键字，您将及时了解与该产品相关的所有商机。</span><br/>
		  <span>2、为了更准确订阅，建议你选择产品所属的行业大类和行业子类。</span>
		  </td>
        </tr>
      </table-->
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		
		
		<tr>
			<td align="right" width="10%">
				部门名称<font color="red">*</font>
			</td>
			<td><input name="org_name" id="org_name" value="<%=org_name %>" type="text" maxlength="20"  size="37" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this); " /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				上级部门:
			</td>
			<td><%=up_org_name%><input name="up_org_id" id="up_org_id" type="hidden" value="<%=up_org_id%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				部门级别:
			</td>
			<td><%=org_class%><input name="org_class" id="org_class" type="hidden" value="<%=org_class%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				部门简介:
			</td>
			<td><textarea name="org_desc" id="org_desc" rows="3" cols="40" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this); "><%=org_desc%></textarea></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				备注:
			</td>
			<td><input name="remark" id="remark" value="<%=remark%>" type="text" size="37" maxlength="30" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this); " /></td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="6082" />
	  			<input type="hidden" name="org_id" value="<%=org_id%>" />
				<input type="hidden" name="jumpurl" value="<%=para%>" />
				<input class="buttoncss" type="submit" name="tradeSub" value="提交" onclick="return submitValues()" />&nbsp;&nbsp;
				<input class="buttoncss" type="button" name="tradeRut" value="返回" onclick="window.location.href='<%=para%>';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
